//部门相关的api接口
import requst from '@/utils/request'

export const queryPageApi = (name,gender,begin,end,page,pageSize) => 
  requst.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

export const saveEmp = (emp) => requst.post('/emps',emp);

export const deleteEmpApi = (ids) => requst.delete(`/emps?ids=${ids}`);

export const getEmpById = (id) => requst.get(`/emps/${id}`);

export const updateEmp = (emp) => requst.put('/emps',emp);


export const getEmpList = () => requst.get('/emps/list');

export const updateEmpPassword = (emp) => requst.put('/emps/password',emp);